package com.example.zsr.downloadcontinue.ToolUtils;

import java.io.File;
import java.io.Serializable;

/**
 * 用serializable就可以接受intent的参数了
 * @author zhengshaorui
 *
 */
public class FileInfo implements Serializable{

	private int id;
	private String apkurl;
	private String fileDir;
	private String fileName;
	private int length;
	private File Dir;
	private int finished;
	
	
	
	public FileInfo() {
		super();
	}

	public FileInfo(int id, String apkurl, String fileDir, String fileName,
					int length, File dir, int finished) {
		this.id = id;
		this.apkurl = apkurl;
		this.fileDir = fileDir;
		this.fileName = fileName;
		this.length = length;
		Dir = dir;
		this.finished = finished;
	}

	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getApkurl() {
		return apkurl;
	}
	public void setApkurl(String apkurl) {
		this.apkurl = apkurl;
	}
	public String getFileName() {
		return fileName;
	}

	@Override
	public String toString() {
		return "FileInfo{" +
				"id=" + id +
				", apkurl='" + apkurl + '\'' +
				", fileDir='" + fileDir + '\'' +
				", fileName='" + fileName + '\'' +
				", length=" + length +
				", Dir=" + Dir +
				", finished=" + finished +
				'}';
	}

	public void setFileName(String fileName) {
		this.fileName = fileName;
	}
	public int getLength() {
		return length;
	}
	public void setLength(int length) {
		this.length = length;
	}
	public int getFinished() {
		return finished;
	}
	public void setFinished(int finished) {
		this.finished = finished;
	}

	public String getFileDir() {
		return fileDir;
	}

	public void setFileDir(String fileDir) {
		this.fileDir = fileDir;
	}

	public File getDir() {
		return Dir;
	}

	public void setDir(File dir) {
		Dir = dir;
	}
}
